package com.xtsoft.platform.globe.enums;
/**
 * @Description 表示真假、0、1的枚举
 * @Param null
 * @return
 * @Author defencez
 * @Date 2024-04-20 22:43
*/
public enum YesNo {
	No(false,0),
	Yes(true,1);
	
	private boolean booleanValue;
	private int intValue;
	
	YesNo(boolean booleanValue, int intValue){
		this.booleanValue = booleanValue;
		this.intValue = intValue;
	}
	
	public boolean getBooleanValue() {
		return booleanValue;
	}
	
	public int getIntValue() {
		return intValue;
	}

	YesNo getEmunValue(int intValue){
		switch (intValue){
			case 0:
				return No;
			case 1:
				return Yes;
		}
        return null;
    }
}
